package com.sanyang.logistics.zhd.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.sanyang.logistics.pojo.DriverDim;
import com.sanyang.logistics.zhd.dao.DriverDao;

@Repository("drservice")
public class DriverServiceImp implements DriverService{

	
	@Autowired
	private DriverDao drdao;
	@Override
	public List<DriverDim> selectDriver(DriverDim driverDim) {
		List<DriverDim> selectDriver = drdao.selectDriver(driverDim);
		return selectDriver;
	}
	@Override
	public void delDriver(Integer driver_id) {
		drdao.delDriver(driver_id);
		
	}
	@Override
	public void addOne(DriverDim driverDim) {
		drdao.addOne(driverDim);
		
	}
	@Override
	public void upDriver(DriverDim driverDim) {
		// TODO Auto-generated method stub
		drdao.upDriver(driverDim);
	}
	@Override
	public DriverDim selectOne(Integer driver_id) {
		
		return drdao.selectOne(driver_id);
	}
	@Override
	public DriverDim selectByLicense(DriverDim driverDim) {
		
		return drdao.selectByLicense(driverDim);
	}

}
